import logging
import sys
from datetime import datetime
from gui.MenuGui import MenuGui
from Listener import Listener


class His():
	def __init__(self):
		if '-d' in sys.argv:
			time_name = datetime.now().strftime("%Y_%m_%d__%H_%M_%S")
			logging.basicConfig(level=logging.DEBUG, filename='log/' + time_name + '.txt')

		self.listener = Listener()
		self.menu = MenuGui(self.listener)


if __name__ == '__main__':
	His()
